package com.boss.salary.entity;

import com.boss.common.util.DateUtils;
import com.boss.sys.utils.SysUtils;

import java.io.Serializable;

public class PersonTypeSalary implements Serializable {
    private String id;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 更新时间
     */
    private String updateTime;
    /**
     * 工资id
     */
    private String salaryId;

    /**
     * 工资name
     */
    private String salaryName;
    /**
     * 人员类型
     */
    private String personType;
    /**
     * 人员类型id
     */
    private String personTypeId;

    /**
     * 人员类型code
     */
    private String personTypeCode;

    /**
     * 关联salary_month_end表字段名s1-s100
     */
    private String columnName;
    /**
     * 是否删除
     */
    private Integer isDeleted;

    /**
     财政部内部机构代码
     */
    private String mofDivCode;
    /**
     * 是否是标准项（扩展工资项基础表属性）
     */
    private  Integer isStandard;
    /**
     * 前台是否显示（扩展工资项基础表属性）
     */
    private  Integer isShow;
    /**
     * 是否是计算项（扩展工资项基础表属性）
     */
    private  Integer isCompute;
    /**
     * 小数保留位数
     */
    private Integer decimalPlace;

    public String getMofDivCode() {
        return mofDivCode;
    }

    public void setMofDivCode(String mofDivCode) {
        this.mofDivCode = mofDivCode;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getSalaryId() {
        return salaryId;
    }

    public void setSalaryId(String salaryId) {
        this.salaryId = salaryId;
    }

    public String getPersonTypeId() {
        return personTypeId;
    }

    public void setPersonTypeId(String personTypeId) {
        this.personTypeId = personTypeId;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getSalaryName() {
        return salaryName;
    }

    public void setSalaryName(String salaryName) {
        this.salaryName = salaryName;
    }

    public String getPersonType() {
        return personType;
    }

    public void setPersonType(String personType) {
        this.personType = personType;
    }

    public String getPersonTypeCode() {
        return personTypeCode;
    }

    public void setPersonTypeCode(String personTypeCode) {
        this.personTypeCode = personTypeCode;
    }

    public Integer getIsCompute() {
        return isCompute;
    }

    public void setIsCompute(Integer isCompute) {
        this.isCompute = isCompute;
    }

    public Integer getIsStandard() {
        return isStandard;
    }

    public void setIsStandard(Integer isStandard) {
        this.isStandard = isStandard;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getDecimalPlace() {
        return decimalPlace;
    }

    public void setDecimalPlace(Integer decimalPlace) {
        this.decimalPlace = decimalPlace;
    }

    @Override
    public String toString() {
        return "PersonTypeSalary{" +
                "id='" + id + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", salaryId='" + salaryId + '\'' +
                ", salaryName='" + salaryName + '\'' +
                ", personType='" + personType + '\'' +
                ", personTypeId='" + personTypeId + '\'' +
                ", personTypeCode='" + personTypeCode + '\'' +
                ", columnName='" + columnName + '\'' +
                ", isDeleted=" + isDeleted +
                ", mofDivCode='" + mofDivCode + '\'' +
                '}';
    }

    public PersonTypeSalary(SalaryBasedata salaryBasedata,BaseData baseDate) {
        this.id = SysUtils.generateGuid();
        this.createTime = String.valueOf(DateUtils.getCurrentTimeStamp());
        this.updateTime = String.valueOf(DateUtils.getCurrentTimeStamp());
        this.salaryId = salaryBasedata.getId();
        this.salaryName = salaryBasedata.getSalaryName();
        this.personType = baseDate.getType();
        this.personTypeId = baseDate.getId();
        this.personTypeCode = baseDate.getCode();
        this.columnName = salaryBasedata.getSalaryCode();
        this.isDeleted = 0;
        this.mofDivCode = salaryBasedata.getMofDivCode();
        this.isStandard = salaryBasedata.getIsStandard();
        this.isShow = salaryBasedata.getIsShow();
        this.isCompute = salaryBasedata.getIsCompute();
    }

    public PersonTypeSalary() {

    }
}
